package com.homework.HomeAcount.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.homework.HomeAcount.dao.PermissionDao;
import com.homework.HomeAcount.entity.Permission;
import com.homework.HomeAcount.service.PermissionService;

@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {
	
	@Autowired
	private PermissionDao permissionDao;

	@Override
	public List<Permission> getPermissionsByUserId(String userId) {
		return permissionDao.getPermissionsByUserId(userId);
	}

}
